package com.xuxin.nantai.contract;

import com.xuxin.nantai.bean.BaseBean;
import com.xuxin.nantai.bean.HangUpdateLoginBean;
import com.xuxin.nantai.bean.PackInfoBean;
import com.xuxin.nantai.presenter.PackUpdatePresenter;

/**
 * Created by xu_xin
 * Created on 2020.06.22 0022
 */
public interface PackUpdateContract {

    interface Model {

        void getPackInfo(PackUpdatePresenter presenter,
                         String FlowingCode,
                         String LoginName);

        void update(PackUpdatePresenter presenter,
                    String LoginName,
                    String UserName,
                    String Guid,
                    String ID,
                    String cInvName,
                    String cInvCode,
                    String Color,
                    String PackQty,
                    String Check_BZ,
                    String CheckNum,
                    String FlowingCode,
                    String Remark,
                    String Result,
                    String InspectorName,
                    String InspectorCode,
                    String InspectTime,
                    String FacArea,
                    String DefectNum,
                    String DefectDes,
                    int IsReCheck);

        void getLoginUser(PackUpdatePresenter presenter,String loginName);
    }

    interface View extends BaseContract.view {

        void onSuccess(PackInfoBean packInfoBean);

        void onSuccess(BaseBean baseBean);

        void onSuccess(HangUpdateLoginBean hangUpdateLoginBean);
    }

    interface Presenter extends BaseContract.presenter {

        void getPackInfo(String FlowingCode,
                         String LoginName);

        void update(String LoginName,
                    String UserName,
                    String Guid,
                    String ID,
                    String cInvName,
                    String cInvCode,
                    String Color,
                    String PackQty,
                    String Check_BZ,
                    String CheckNum,
                    String FlowingCode,
                    String Remark,
                    String Result,
                    String InspectorName,
                    String InspectorCode,
                    String InspectTime,
                    String FacArea,
                    String DefectNum,
                    String DefectDes,
                    int IsReCheck);

        void getLoginUser(String loginName);

        void onSuccess(PackInfoBean packInfoBean);

        void onSuccess(BaseBean baseBean);

        void onSuccess(HangUpdateLoginBean hangUpdateLoginBean);
    }
}